<html>
<head>
<title>iQoo智能平台网站导航</title>
<META http-equiv="content-type" content="text/html; charset=utf8" >
</head>

<body>
<div style="width:800px; margin:0 auto;" />

<?php
include("./db_func.php");
include("./show_data.php");
$db_con=connectDatabase();
if (!$db_con){
		echo "Fetal error!EXIT...";
		exit();
	}
else {
		$cates=getCatesByProjectID(1,$db_con);
		if(!$cates) {
			echo "查询失败或结果为空！";
		}
		else {
			//echo "有料.<br>";
			showAllCatesWithAnchor($cates);
		}
		$pros=getAllProject($db_con);
		if (!$pros) {
				echo "查询项目失败!<br>";
		}
		else{
			showAllProject($pros);
		}
		$addrs=getAddressUnderPro(1, $db_con);
		if (!$addrs) {
				echo "查询http网址失败!<br>";
		}
		else{
			showAddressUnderPro($addrs);
		}

		
}

mysql_close($db_con);


?>
</div>
</body>
</html>
